ARM: SPL: Only call mem_malloc_init if configured
authorTom Rini <[email protected]>
Mon, 13 Aug 2012 21:13:07 +0000 (14:13 -0700)
committerTom Rini <[email protected]>
Thu, 27 Sep 2012 16:48:39 +0000 (09:48 -0700)
commit24dafad5c42018ea11c0d12f747a7eb337229f5a
tree609e202d45f149c73d95211e03e29d4f13c81211
parent8082fda9fc6d6fb6ba1bc467fb117af3dbed928a
ARM: SPL: Only call mem_malloc_init if configured

We can only attempt to setup a malloc pool if
CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it.
Make the call depend on the define.

Signed-off-by: Tom Rini <[email protected]>
arch/arm/cpu/armv7/omap-common/spl.c